package com.eas.biz.dao.statistic.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.statistic.dataobject.ClassGradeStatisticDO;
import com.eas.biz.dao.statistic.interfaces.ClassGradeStatisticDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("classGradeStatisticDao")
public class ClassGradeStatisticDaoImpl extends GenericDaoImpl<ClassGradeStatisticDO> implements
        ClassGradeStatisticDao {

    public ClassGradeStatisticDO selectById(long id) {
        return selectById("ClassGradeStatistic.selectById", id);
    }

    public long insert(ClassGradeStatisticDO object) {
        return insert("ClassGradeStatistic.insert", object);
    }

    public int deleteById(long id) {
        return deleteById("ClassGradeStatistic.deleteById", id);
    }

    public int update(ClassGradeStatisticDO object) {
        return update("ClassGradeStatistic.update", object);
    }

    public List<ClassGradeStatisticDO> selectByQuery(BaseQuery query) {
        return selectByQuery("ClassGradeStatistic.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("ClassGradeStatistic.countByQuery", query);
    }

    public int deleteByQuery(BaseQuery query) {
        return deleteByQuery("ClassGradeStatistic.deleteByQuery", query);
    }

}
